import { Map } from "immutable";
import { CHange_COLLAPSED } from "../type";
const reducer = (state = Map({ collapsed: false }), { type, payload }) => {
  switch (type) {
    case CHange_COLLAPSED:
      return state.set("collapsed", !state.get("collapsed"));

    default:
      return state;
  }
};
export default reducer;
